<template>
  <section class="dock-wrapper">
    <ul class="dock">
      <template v-for="item in dockApps">
        <DockItem v-if="!item.hidden" :key="item.appId" :app="item" :title="item.title"></DockItem>
      </template>
    </ul>
  </section>
</template>

<script>
import { mapGetters } from 'vuex'
import DockItem from './DockItem.vue'
export default {
  components: {
    DockItem
  },
  computed: {
    ...mapGetters(['dockApps'])
  },
  mounted() {
    // console.log(this.dockApps)
  }
}
</script>

<style lang="less" scoped>
@import "../../global/style/var.less";
.dock-wrapper {
  margin: 0 auto;
  border: 0 solid @-dock-border-color;
  z-index: 50;
  position: fixed;
  width: max-content;
  left: 0;
  right: 0;
  bottom: 10px;
  z-index: 3000;
  .dock {
    // height: 65px;
    box-shadow: 0 0 20px 0 rgb(0 0 0 / 17%);
    border-radius: 15px;

    padding-left: 5px;
    padding-right: 5px;
    padding-bottom: 5px;
    padding-top: 5px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    border-width: 1px 1px 0;
    border-color: @-dock-border-color;
    background-color: @-dock-background-color;
    backdrop-filter: blur(8px);
  }
}
</style>